SHELL = /bin/bash
DESTDIR       =
INSTALL = /usr//bin/install -c
bindir = /usr/bin
deskdir = /usr/share/applications
icondir = /usr/share/uppydate
configdir = /etc/uppydate

all:

install: all
	$(INSTALL) -d $(DESTDIR)$(bindir)
	$(INSTALL) -d $(DESTDIR)$(deskdir)
	$(INSTALL) -m755 uppydate-notifier $(DESTDIR)$(bindir)
	$(INSTALL) -m755 uppydate-config $(DESTDIR)$(bindir)
	$(INSTALL) -m644 uppydate.desktop $(DESTDIR)$(deskdir)
	mkdir -p $(DESTDIR)$(icondir)
	$(INSTALL) -m644 uppydate-launcher.desktop $(DESTDIR)$(icondir)
	$(INSTALL) -m644 uppydate.png $(DESTDIR)$(icondir)
	$(INSTALL) -m644 arch-fresh.png $(DESTDIR)$(icondir)
	$(INSTALL) -m644 arch-stale.png $(DESTDIR)$(icondir)
	mkdir -p $(DESTDIR)$(configdir)
	$(INSTALL) -m666 config $(DESTDIR)$(configdir)
